<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue.js 过滤器</title>
</head>
<body>
    <div id="app">
        <h1>价格：{{ prict }}</h1>
        <h1>添加价格符号：{{ prict | myCurrency('￥')}}</h1>
    </div>

    <script src="../js/vue.min.js"></script>
    <script type="text/javascript">
        new Vue({
            el: '#app',
            data: {
                prict: 356
            },
            filters: {
                myCurrency: function (myInput,arg1) {
                    var result = arg1 + myInput;
                    return result;
                }
            }
        })
    </script>
</body>
</html>